import request from '@/utils/request.js'
import { useAuthStore } from '@/stores/auth.js'
const authStore = useAuthStore()
//新增规则
export function addRuleCollectAPI(data) {
  return request({
    url: '/api/ruleCollect/' + authStore.userInfo.id,
    method: 'POST',
    data,
  })
}
//获取规则
export function getRuleCollectAPI(params) {
  return request({
    url: '/api/ruleCollect/list',
    method: 'GET',
    params,
  })
}
//删除规则
export function delRuleCollectAPI(params) {
  return request({
    url: '/api/ruleCollect',
    method: 'DELETE',
    params,
  })
}
//部门查询
export function getStationAPI(params) {
  return request({
    url: '/api/station/listNoPage',
    method: 'GET',
    params,
  })
}
//部门新增
export function addStationAPI(data) {
  return request({
    url: '/api/station',
    method: 'POST',
    data,
  })
}
//部门删除
export function delStationAPI(params) {
  return request({
    url: '/api/station',
    method: 'DELETE',
    params,
  })
}
